<template>
	<view class="">
		<view class="text-center">
			<image :src="baseUrl + 'icon/toExamine.png'" style="width:260rpx;margin-top: 100rpx;" mode="widthFix"></image>
		</view>
		
		<view class="text-center" style="font-size: 30rpx;">
			发布成功
		</view>
		<view class="text-center" style="font-size: 26rpx;color: #aeaeae;margin-top: 16rpx;">
			正在审核中，请耐心等待~
		</view>
		
		<view style="display: flex;justify-content: center;">
			<button class="button" @click="navHome">返回首页</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isClass: 0,
				baseUrl: ''
			}
		},
		onLoad(params) {
			this.baseUrl = this.$baseUrl;
			console.log('params', params);
			
			// isClass  0 发布通告， 1发布约单， 2作品
			this.isClass = params.isClass;
			
			var titleName = params.titleName? JSON.parse(params.titleName): "";
			
			if (params.isClass == 0) {
				uni.setNavigationBarTitle({
					title: `发布${titleName}通告`
				})
			}
			if (params.isClass == 1) {
				uni.setNavigationBarTitle({
					title: `发布约单${titleName}`
				})
			}
			if (params.isClass == 2) {
				uni.setNavigationBarTitle({
					title: `作品发布`
				})
			}
			
			
		},
		methods: {
			navHome() {
				uni.switchTab({
					url: "/pages/index/index"
				})
			},
		},
	}
</script>

<style lang="scss">
	.text-center{
		text-align: center;
	}
	.button {
		margin: 0;
		margin-top: 30rpx;
		background-color: #FFDD00;
		height: 60rpx;
		line-height: 60rpx;
		border-radius: 50rpx;
		font-size: 28rpx;
		width: 220rpx;
		
		&::after {
			border: none
		}
	}
</style>